package com.qf.main.pharmacy.common.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author chengqiang
 * @Create 2024-02-19-9:49
 * @Description:
 */
@Data
public class OrderVo {
    /**
     * 订单主键
     */
    @TableId(value = "order_id", type = IdType.INPUT)
    @ApiModelProperty(value="订单主键")
    private Integer orderId;

    /**
     * 订单号
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField(value = "order_no")
    @ApiModelProperty(value="订单号")
    private Long orderNo;

    // @JsonFormat(shape = JsonFormat.Shape.STRING)

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="用户id")
    private Integer userId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value="用户id")
    private List<OrderMallVo> orderMall;

    /**
     * 用户名
     */
    @TableField(value = "user_name")
    @ApiModelProperty(value="用户名")
    private String userName;


    /**
     * 0正常1删除
     */
    @TableField(value = "del_status")
    @ApiModelProperty(value="0正常1删除")
    private Integer delStatus;

    /**
     * 订单状态(0用户已取消，1未支付，2已付款，3已发货，4交易完成)
     */
    @TableField(value = "order_status")
    @ApiModelProperty(value="订单状态(0用户已取消，1未支付，2已付款，3已发货，4交易完成)")
    private Integer orderStatus;

    /**
     * 商品总价格
     */
    @TableField(value = "total_price")
    @ApiModelProperty(value="商品总价格")
    private BigDecimal totalPrice;

    /**
     * 收货地址id
     */
    @TableField(value = "order_address")
    @ApiModelProperty(value="收货地址id")
    private AddressVo orderAddress;




    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    @ApiModelProperty(value="创建时间")
    private Date createDate;

    private String remark;



}
